﻿// <copyright file="VoteTotal.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-04-28</date>
// <summary>VoteTotal class definition</summary>

namespace NYTimes.Data
{
    /// <summary>
    /// Total votes
    /// </summary>
    public class VoteTotal
    {
        /// <summary>
        /// Gets or sets the total yes votes
        /// </summary>
        public int Yes { get; set; }

        /// <summary>
        /// Gets or sets the total no votes
        /// </summary>
        public int No { get; set; }

        /// <summary>
        /// Gets or sets the total voting present
        /// </summary>
        public int Present { get; set; }

        /// <summary>
        /// Gets or sets the total members not voting
        /// </summary>
        public int NotVoting { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this was the majority position
        /// </summary>
        public bool MajorityPosition { get; set; }

        /// <summary>
        /// Gets or sets the vote margin
        /// </summary>
        public int? Margin { get; set; }

        /// <summary>
        /// Outputs the book detail properties
        /// </summary>
        /// <returns>a string with named value pairs</returns>
        public override string ToString()
        {
            return Synergist.Utility.GetProperties(this);
        }
    }
}
